package org.happen.android.core.net;

import org.happen.android.bean.BaseRequest;
import org.happen.android.bean.BaseResponse;

public interface OnRequestCallback
{
	/**
	 * 用于获取服务器返回的响应
	 * 
	 * @ReqParam request 请求
	 * @ReqParam response 响应
	 */
	public void onSuccess(BaseRequest request, BaseResponse response);

	/**
	 * 异常错误返回类
	 * 
	 * @ReqParam e Exception
	 */
	public void onException(Exception e);
}